<%@ Page Language="VB" ValidateRequest="false" MasterPageFile="~/Default.master" AutoEventWireup="false" CodeFile="Blogger.aspx.vb" Inherits="Blogger" title="Untitled Page" %>

<%@ Register TagPrefix="Club" TagName="WebContent" Src="~/UserControls/WebContent.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<div id="body">
    <div id="columnleft">
        <div class="leftblock">
        <Club:WebContent ID="WebContent1" runat="server" Section="blogshome" />
         
                    <a href="../RSS/BlogsRss.aspx">
                    <asp:Image ID="Image1" runat="server" SkinID="rss" />
                    </a><br />
                    <br />
            <asp:Panel ID="Panel1" runat="server" Height="24px" Width="125px">
                <Club:RolloverLink ID="Addbtn" runat="server" Text="New Post" NavigateURL="addpost.aspx" />
            </asp:Panel>
            </div>
    </div>
    <div id="columnright">
        <div class="rightblock">
            <asp:ObjectDataSource ID="BlogsDataSouce" runat="server" SelectMethod="GetBloggerAll"
                TypeName="ClubStarterKit.Web.Blogs">
                <SelectParameters>
                    <asp:ControlParameter Name="pagenum" ControlID="pn1" PropertyName="SelectedPage" />
                    <asp:QueryStringParameter Name="Username" QueryStringField="username" Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
            <asp:Repeater ID="Repeater1" runat="server" DataSourceID="BlogsDataSouce">
                <HeaderTemplate>
                    <h2>Blog Posts</h2>
                    <div class="dashedline">
                </div>
                    
                </HeaderTemplate>
                <ItemTemplate>
                <table cellspacing="0">
                    <tr>
                        <td style="width: 437px; height: 28px">
                            <strong style="font-size:medium;">
                               <asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("Title") %>' NavigateUrl='<%# "post.aspx?id=" & Eval("postid").ToString %>'></asp:HyperLink></strong></td>
                        <td style="width: 437px; height: 28px; text-align: right">
                            &nbsp;<span><asp:Label ID="Label3" runat="server" Text='<%# ClubStarterKit.Web.Members.FirstAndLastName(Eval("memid")) %>' /> | <asp:Label ID="Label4" runat="server" Text='<%# GetFriendlyDate(CDate(Eval("postdate")),True) %>' ></asp:Label></span></td>
                    </tr>
                    <tr>
                        <td style="width: 437px">
                        </td>
                        <td style="width: 437px">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("PostText") %>' ></asp:Label></td>
                    </tr>
                </table>
                </ItemTemplate>
                <FooterTemplate>
                <div class="dashedline">
                </div>
                </FooterTemplate>
            </asp:Repeater>
            <br />
            Page: <Club:PageNumberer ID="pn1" runat="server" SelectedPage="1" DisplayedPages="7" CssClass="PageNumbers" />
            </ContentTemplate>
            </asp:UpdatePanel>            
            <asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="20" AssociatedUpdatePanelID="UpdatePanel1">
            <ProgressTemplate>
                <asp:Image ID="Loading1" SkinID="loading" runat="server" />
            </ProgressTemplate>
            </asp:UpdateProgress>
            </div>
    </div>
</div>
</asp:Content>

